package game.quest
{
	import game.messages.quest.*;
	
	public class RxQuestNPCData
	{
		public var m_questId:String;
		public var m_npcType:uint;
		public var m_taskIndex:uint;
		public static const NPC_TYPE_INVALID:uint = 0;
		public static const NPC_TYPE_STARTER:uint = 1;
		public static const NPC_TYPE_KILL_TASK_TARGET:uint = 2;
		public static const NPC_TYPE_USE_TASK_TARGET:uint = 3;
		public static const NPC_TYPE_TALK_TASK_TARGET:uint = 4;
		
		public function RxQuestNPCData()
		{
		}
		
		public function IsQuestTaskTarget() : Boolean
		{
			return this.m_taskIndex >= 1 && this.m_taskIndex <= RxQuest_StateRecord.MAX_TASKS && (this.m_npcType == NPC_TYPE_KILL_TASK_TARGET || this.m_npcType == NPC_TYPE_USE_TASK_TARGET || this.m_npcType == NPC_TYPE_TALK_TASK_TARGET);
		}
	}
}